<template>
    <div class="avatar">
        <el-avatar :size="120">
            <img :src="avatarUrl"/>
        </el-avatar>
        <div class="info">
            <p class="name">Leungyh</p>
            <p class="introduce">平平无奇的前端开发</p>
        </div>
    </div>
</template>

<script>
export default {
    name: "Avatar",
    data () {
        return {
            avatarUrl: require('../assets/images/cat.jpg'),
        }
    },
    components: {
        
    },
    mounted () {
        
    },
    methods: {
        
    },
}
</script>

<style lang="less" scoped>
.avatar{
    text-align: center;
    margin-top: 30px;
    .info{
        p{
            margin-top: 5px;
        }
        .name{
            font-weight: 800;
        }
        .introduce{
            font-weight: 400;
        }
    }
}
</style>